<script lang="ts" setup>
import { useRouter } from 'vue-router'

const router = useRouter()

// 获取存储的用户类型
const userType = localStorage.getItem('type')

const openFullScreen = () => {
  if (userType === '2') {
    console.log(userType)
    router.push({
      path: '/admin',
    })
  } else {
    router.push({
      path: '/home/dynamic',
    })
  }
}

openFullScreen()
</script>

<template></template>
